package com.dongdongshop.data;

/**
 * @Description
 * @ClassName ResponseStaus
 * @Author RC
 * @date 2020.12.10 00:41
 */
//枚举 自己创建多个对象
    //点哪个 那个对象提取出来 一一列举
public enum  ResponseStausEnum {
    SUSSCESS(200,"操作成功"),BAD_REQUEST(400,"参数异常"),
    INTERNAL_SERVER_ERROR(500,"服务器内部错误"),
    INTERNAL_SERVER_UNLOGIN(1000,"请先登录"),
    INTERNAL_SERVER_FAIL(1001,"操作失败");
    private Integer index;
    private String name;

    ResponseStausEnum(Integer index, String name) {
        this.index = index;
        this.name = name;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
